({
	xtype : 'form',
	frame : true,
	labelWidth : 70,
	labelAlign : 'right',
	defaults : {
		anchor : '92%'
	},
	items : [ {
		name:'columnid',
		xtype:'hidden'
	},{
		hiddenName : 'sourcetable',
		fieldLabel : '来源表',
		xtype : 'combo',
		id:'sourcetableid_'+this.menuid,
		triggerAction : 'all',
		mode : 'local',
		editable : false,
		valueField : 'tablename',
		displayField : 'tablecnname',
		menuid:this.menuid,
		setValue:function(value){
			if(value!=null){
				var combo=Ext.getCmp('sourcecolumnid_'+this.menuid);
				combo.getStore().baseParams.tablename=value;
				combo.getStore().load();
				Ext.form.ComboBox.prototype.setValue.call(this, value);
			}
		   
		},
		store : new Ext.data.Store({
			proxy : new Ext.data.HttpProxy({
				url :  basepath+"../sysControl/system/SysDicTableController/findTable.do"
			}),
			reader : new Ext.data.JsonReader({
				id : "tableid"
			}, Ext.data.Record.create([{
				name : 'tableid',
				type : 'int'
			}, {
				name : "tablename",
				type : 'string'
			}, {
				name : "tablecnname",
				type : 'string'
			}]))
		}),
		listeners:{
			'select':function(obj,record,index)
			{
				var combo=Ext.getCmp('sourcecolumnid_'+this.menuid);
			
				combo.getStore().baseParams.tablename=record.data.tablename;
				combo.getStore().load();
				
			}
		}
	}, {
		xtype : 'combo',
		fieldLabel : '来源列',
		id:'sourcecolumnid_'+this.menuid,
		hiddenName : 'sourcecolumn',
		triggerAction : 'all',
		mode : 'local',
		editable : false,
		valueField : 'name',
		displayField : 'cnname',
		store : new Ext.data.Store({
    		autoLoad:false,
    		menuid:this.menuid,
			proxy : new Ext.data.HttpProxy({
				url :  basepath+"../sysControl/system/SysDicColumnController/comboQuery.do"
			}),
			reader : new Ext.data.JsonReader({
				id : "columnid"
			}, Ext.data.Record.create([{
				name : 'columnid',
				type : 'int'
			}, {
				name : "name",
				type : 'string'
			}, {
				name : "cnname",
				type : 'string'
			}])),
			listeners:{
				'load':function(store,record)
				{
					var combo=Ext.getCmp('sourcecolumnid_'+this.menuid);
					var value=combo.getValue();
					if(value==null)
						combo.setValue(combo.getStore().getAt(0).data.name);
					else
						combo.setValue(value);
				}
			}
		})
	} ]
})